#include				"ServiceManager.h"

ServiceManager::ServiceManager()
{

}

ServiceManager::~ServiceManager()
{

}

void					ServiceManager::init()
{
	int cores_number = boost::thread::hardware_concurrency();
	if (!cores_number)
		cores_number = 1;
	for (int i = 0; i < cores_number; ++i)
		threads.create_thread(boost::bind(&boost::asio::io_service::run, &io_service));
}

boost::asio::io_service	&ServiceManager::getService()
{
	return io_service;
}